<template>
  <div class="big">
    <div class="bigBox">
      <div class="box">
        <div class="left_img">
          <img src="../../assets/left.png" @click="but" alt="" />
        </div>
        <div class="head">
          <img src="../../assets/headportrait.png" alt="" />
          <div>{{ note.name }}</div>
        </div>
        <div class="place">
          <img src="../../assets/weizhi.png" alt="" />
          <div>m78星云</div>
        </div>
        <div class="attention">
          <div>关注</div>
          <img src="../../assets/fengxxianghei.png" alt="" />
        </div>
      </div>
    </div>
    <div class="content">
      <van-swipe
        class="my-swipe"
        :autoplay="2000"
        style="height: 280px"
        indicator-color="white"
      >
        <van-swipe-item>
          <img
            :src="note.imagepath1"
            style="width: 500px; height: 300px"
            alt=""
          />
        </van-swipe-item>
        <van-swipe-item>
          <img
            :src="note.imagepath2"
            style="width: 500px; height: 300px"
            alt=""
          />
        </van-swipe-item>
        <van-swipe-item>
          <img
            :src="note.imagepath3"
            style="width: 500px; height: 300px"
            alt=""
          />
        </van-swipe-item>
        <van-swipe-item>
          <img
            :src="note.imagepath4"
            style="width: 500px; height: 300px"
            alt=""
          />
        </van-swipe-item>
      </van-swipe>
    </div>
    <div class="title">
      <div class="bigTitle">{{ note.caption }}</div>
      <div class="title_one">
        {{ note.textpart }}
      </div>
    </div>
    <div class="review">
      <div>共1条评论</div>
    </div>
    <div class="personage">
      <img src="../../assets/headportrait.png" alt="" />
      <van-search
        v-model="value1"
        shape="round"
        left-icon
        placeholder="喜欢就给个评论支持一下~"
        style="width: 330px"
      />
    </div>
    <div class="discuss">
      <img src="../../assets/headportrait.png" alt="" />
      <div class="name">
        <div class="name_one">牛马</div>
        <div class="name_two">坤坤想知道这个地方在哪里</div>
        <div class="name_three">昨天 17:20 山东</div>
      </div>
      <div class="love">
        <img src="../../assets/love.png" alt="" />
      </div>
    </div>
    <div class="box_one">
      <div class="boxLike">
        <van-search
          v-model="value"
          shape="round"
          placeholder="说点什么..."
          style="width: 210px"
        />
      </div>
      <div class="like">
        <van-icon name="like-o" />
        <div>123</div>
        <van-icon name="star-o" />
        <div>88</div>
        <van-icon name="chat-o" />
        <div>1</div>
      </div>
    </div>
  </div>
</template>

<script>
import { Note_detail1 } from "../../api/mint";
export default {
  data() {
    return {
      value1: "",
      value: "",
      note: [],
    };
  },
  created() {
    this.go();
  },
  methods: {
    go() {
      Note_detail1({ notesid: 1 }).then((res) => {
        console.log(res);
        this.note = res.result;
      });
    },
    but() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped>
.bigBox {
  width: 100%;
  height: 70px;
  margin-top: 15px;
}
.left_img img {
  width: 20px;
  height: 20px;
  margin-top: 25px;
  margin-left: 10px;
}
.head img {
  width: 40px;
  height: 40px;
}
.head {
  display: flex;
  width: 50%;
  margin-left: 55px;
  margin-top: -35px;
}
.head div {
  margin-left: 25px;
}
.place img {
  width: 15px;
  height: 15px;
}
.place {
  display: flex;
  align-items: center;
  margin-left: 110px;
  margin-top: -10px;
  color: #696969;
  font-size: 15px;
}
.attention img {
  width: 30px;
  height: 30px;
  margin-left: 20px;
}
.attention div {
  text-align: center;
  line-height: 30px;
  width: 60px;
  height: 30px;
  color: red;
  font-weight: 700px;
  border: 1px solid red;
  border-radius: 15px;
}
.attention {
  display: flex;
  align-items: center;
  margin-left: 260px;
  margin-top: -40px;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
.content {
  margin-top: 20px;
}
.bigTitle {
  font-weight: 800;
  font-size: 20px;
}
.title {
  margin-top: 25px;
  width: 95%;
  margin-left: 10px;
}
.title_one {
  margin-top: 10px;
  font-size: 17px;
}
.review {
  margin-top: 30px;
  width: 95%;
  margin-left: 10px;
}
.personage img {
  width: 35px;
  height: 35px;
}
.personage {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-left: 20px;
}
.discuss img {
  width: 35px;
  height: 35px;
  margin: 18px;
}
.name {
  width: 82%;
  height: 60px;
  margin-left: 70px;
  margin-top: -60px;
  border-bottom: 1px solid #696969;
}
.name_one {
  color: #696969;
}
.name_two {
  margin-top: 3px;
}
.name_three {
  color: #696969;
  margin-top: -18px;
  margin-left: 200px;
  font-size: 12px;
}
.love img {
  width: 20px;
  height: 20px;
  float: right;
  margin-top: -60px;
}
.like img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.big {
  height: 1000px;
}
.like {
  display: flex;
  margin-left: 220px;
  margin-top: -35px;
  justify-content: space-evenly;
  align-items: center;
  width: 170px;
}

.box_one {
  position: fixed;
  margin-bottom: 0px;
}
.boxLike {
  margin-top: 80px;
}
</style>